<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>123</title>
        <style>
            .button{
                background-color: #8c8c8c;
                color: white !important;
                padding: 5px !important;
                border: 1px solid black !important;
            }
            #mydiv a{
                color: red;
                background-color: yellow;
            }
        </style>
    </head>
    <body>
        <p>标准按钮: <a class="button" href="/imgs/">CSS教程</a></p>
        <div id="mydiv">
            <p>div中的一个链接: <a href="/imgs/">HTML教程</a></p>
            <p>div中的另一个链接: <a href="/imgs/" class="button">Java教程</a></p>

        </div>

    </body>
</html>